<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <script type="text/javascript" src="${ctx}/appjs/hlht/hlhtTenantOpen.js"></script>
    <link rel="stylesheet" href="${ctx}/statics/css/update.css">
    <link rel="stylesheet" href="${ctx}/statics/css/common.css">
    <link rel="stylesheet" href="${ctx}/libjs/plugins/bootstrap-table-pagejump/bootstrap-table-pagejump.css">
    <script src="${ctx}/libjs/plugins/bootstrap-table-pagejump/bootstrap-table-pagejump.js"></script>
    <link rel="stylesheet" href="${ctx}/libjs/plugins/laydate/laydate.css">
    <script src="${ctx}/libjs/plugins/laydate/laydate.js"></script>
    <link rel="stylesheet" href="${ctx}/libjs/plugins/bootStrap-table-fixed-column/bootstrap-table-fixed-columns.css">
    <script src="${ctx}/libjs/plugins/bootStrap-table-fixed-column/bootstrap-table-fixed-columns.js"></script>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<br>' +
            '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>互联互通</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>运营商互联信息列表</strong>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a href="javascript:window.history.back()"><i class="fa fa-times"></i> 返回</a>' +
            '</li>' +
            '</ol>';
    });

    var has_add = '';
    var has_edit = '';
    var has_delete = '';
    var Hlht_update = false;
    var Hlht_look = false;
</script>

<body class="gray-bg">
<div class="wrapper wrapper-content  overflow-x: scroll">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">


                <div class="row">
                    <input id="tenantCode" name="tenantCode" type="hidden" value="${tenantCode}">
                    <%--<div class="pull-left search col-md-2">--%>
                        <select class="form-control shortInput input-distance" id="hlhtOpenType" name="hlhtOpenType">
                            <option value="" selected>互联类型</option>
                            <option value="0" >内部互联</option>
                            <option value="1" >外部互联</option>
                            <option value="2" >政务互联</option>
                        </select>
                        <select class="form-control shortInput input-distance" id="status" name="status">
                            <option value="" selected>互联状态</option>
                            <option value="0" >未上线</option>
                            <option value="1" >互联中</option>
                            <option value="2" >已过期</option>
                        </select>
                    <%--</div>--%>
                    <%--<div class="pull-left search col-md-2">--%>
                        <select class="form-control shortInput input-distance" id="hlhtType" name="hlhtType">
                            <option value="" selected>互联方向</option>
                            <option value="0" >反向</option>
                            <option value="1" >正向</option>
                        </select>
                    <%--</div>--%>
                    <%--<div class="pull-left search col-md-2">--%>
                        <select type="text" class="form-control shortInput input-distance" name="hlhtTenantOrHlhtOperator" style="display: block" id="hlhtTenantOrHlhtOperator">
                            <option value="" selected>互联运营商</option>
                            <c:forEach items="${hlhtTenantList}" var="hlhtTenant">
                                <option value="${hlhtTenant.code}">${hlhtTenant.name}</option>
                            </c:forEach>
                        </select>
                    <%--</div>--%>
                    <shiro:hasPermission name="Hlht_reload">
                    <%--<div class="pull-left search col-md-2">--%>
                        <button class="btn btn-success input-distance" onclick="hlhtTenantOpen.reLoad()">查询</button>
                    <%--</div>--%>
                    </shiro:hasPermission>
                    <shiro:hasPermission name="Hlht_export">
                    <%--<div class="pull-left search col-md-1">--%>
                        <input id="count" name="count" type="text" class="form-control  input-distance shortInput"
                               placeholder="导出条数">
                        <%--<span class="text-primary">最大导出条数:20000</span>--%>
                    <%--</div>--%>
                    <%--<div class="pull-left search col-md-2">--%>
                        <button class="btn btn-success input-distance"" onclick="hlhtTenantOpen.exportHlhtTenantOpen()">导出</button>
                    <%--</div>--%>
                    </shiro:hasPermission>
                </div>

                <table id="exampleTable" data-mobile-responsive="true">
                </table>
            </div>
        </div>
    </div>
</div>



    <script>
        <shiro:hasPermission name="Hlht_apply_look">
            Hlht_apply_look = true;
        </shiro:hasPermission>
        <shiro:hasPermission name="Hlht_apply_look">
        Hlht_update = true;
        </shiro:hasPermission>
    </script>

<script type="text/javascript">
    $(function () {
        $('#hlhtTenantOrHlhtOperator').searchableSelect();
    })

    layui.use('laydate', function () {
        var laydate = layui.laydate;
        var startTime = laydate.render({
            elem: '#beginDate',

            type: 'datetime',
            format: 'yyyy-MM-dd HH:mm:ss',
            trigger: 'click',
            done: function (value, dates) {
                endTime.config.min = {
                    year: dates.year,
                    month: dates.month - 1, //关键
                    date: dates.date,
                    hours: 0,
                    minutes: 0,
                    seconds: 0
                };
            }
        });
        var endTime = laydate.render({
            elem: '#endDate',
            type: 'datetime',
            format: 'yyyy-MM-dd HH:mm:ss',
            trigger: 'click'
        });

    });
    hlhtTenantOpen.init();
</script>
</body>
</html>